Seems like your python is older one, despite there's 'Python 3.9.5' on bottom.
If you just type python, this might be python2.x .
Run python --version or python3 --version on this console to check the version.
Note that tensorflow-macos requires python3.8 or 3.9 .